*****************************************************************
**Party Oragnization and Gender in European Elections Supplement
**Party Politics 2020
**Andrea Aldrich 
*****************************************************************

use aldrich.partypolitics.2020, 

*****************************************************************
** Table S3
*****************************************************************

local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			gallagher ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		   
betareg female_percentage centralized_selection `IV' if female_percentage>0 & female_percentage<1

*****************************************************************
** Table S4
*****************************************************************

/* MODEL IN PAPER */			

local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			gallagher ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		
		
		   
fracreg logit female_percentage centralized_selection `IV'
	
			
/* ideology also interacted*/	
drop cen_position cen_lrgen
gen cen_position=position*centralized_selection
gen cen_lrgen=lrgen*centralized_selection

local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			gallagher ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			position ///
			lrgen ///
			cen_position ///
			cen_lrgen ///
			ep_women_unit ///
			women_Plead_unit 
			 
		   
fracreg logit female_percentage centralized_selection `IV'
	
			
/* addition of election timing */			
local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			gallagher ///
			Election_Timing ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			cen_election_time ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		
		   
fracreg logit female_percentage centralized_selection `IV'
				
			
/* Vote share instead of change*/	
gen vote_unit=vote/100
gen cen_vote_unit=vote_unit*centralized_selection		
local IV ///
			vote_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			gallagher ///
			cen_vote_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		   
fracreg logit female_percentage centralized_selection `IV'


/* ENP instead of Gallagher*/			

drop cen_ENP_europe
gen cen_ENP_europe=ENP_europe*centralized_selection
local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			ENP_europe ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_ENP_europe ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit  
		   
fracreg logit female_percentage centralized_selection `IV'


/* fractionalziation instead of Gallagher*/

gen cen_rae_europe=centralized_selection*rae_europe
		
local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed_list  ///
			rae_europe ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_ENP_europe ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		   
fracreg logit female_percentage centralized_selection `IV'
			

/* open list and stv instead of closed list*/

gen cen_stv=centralized_selection*STV
		
local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			open_list  ///
			STV ///
			gallagher ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_open_list  ///
			cen_stv ///
			cen_gallagher ///
			position ///
			lrgen ///
			ep_women_unit ///
			women_Plead_unit 
		   
fracreg logit female_percentage centralized_selection `IV'

			
			
/* Percent of women in national legislature addition*/			
gen percent_national= ep_women-ep_natl_diff/100
		
local IV ///
			changeinshare_unit ///
			govt_binary ///
			eastern_europe ///
			PL_Quota ///
			CL_Quota ///
			closed ///
			gallagher ///
			cen_changinshare_unit ///
			cen_govt_binary ///
			cen_eastern_europe ///
			cen_PL_Quota ///
			cen_CL_Quota ///
			cen_closed  ///
			cen_gallagher ///
			position ///
			lrgen ///
			percent_national ///
			ep_women_unit ///
			women_Plead_unit 
		   
fracreg logit female_percentage centralized_selection `IV'
